package com.siteseat.common.rest.exception;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

/**
 * The WebApplicationException for NOT_FOUND
 */
public class ResourceNotFoundException extends WebApplicationException {

  /**
   * 
   */
  private static final long serialVersionUID = 6588870763407845750L;

  /**
   * The constructor
   * 
   * @param msg
   *          error message
   */
  public ResourceNotFoundException( String msg ) {
    super( Response.status( Response.Status.NOT_FOUND ).entity( msg ).build() );
  }

  /**
   * The constructor
   * 
   * @param cause
   *          the cause
   */
  public ResourceNotFoundException( Throwable cause ) {
    super( cause, Response.Status.NOT_FOUND );
  }

  /**
   * The constructor
   * 
   * @param msg
   *          error message
   * @param cause
   *          the cause
   */
  public ResourceNotFoundException( String msg, Throwable cause ) {
    super( cause, Response.status( Response.Status.NOT_FOUND ).entity( msg ).build() );
  }

}
